package routers

import (
    "github.com/gin-gonic/gin"
	"route_example/controller"
)

func UserRoute(rindex *gin.RouterGroup) *gin.RouterGroup {
	r := rindex.Group("user")
	{
		r.GET("getuser/uri/:name/:id", controller.GetUser)
		r.POST("userlist", controller.UserList)
		r.POST("add", controller.UserList)
		r.POST("getuser", controller.GetUserForm)
		r.POST("getuser/bindjson", controller.GetUserBindJson)
		r.POST("getuser/bindform", controller.GetUserBindForm)
		r.POST("getuser/binduri", controller.GetUserBindUri)
	}
	return r
}